let mongoose = require('mongoose')
let Schema = mongoose.Schema

let personSchema = new Schema({
    name: {
        first: String,
        last: String
    }
}) 

personSchema.virtual('getFullName').
get(function() {
    return this.name.first + this.name.last
})
.set(function(name) {
    this.name.first = 
    this.name.last = 
})

let personModel = mongoose.model('personModel', personSchema)

let personEntity = new personModel({})

personEntity.getFullName = 'mystic rao'
console.log(personEntity.getFullName)